<template>
  <comForm :form-info="props.formInfo" />
  <detail-table :form-info="props.formInfo" @refresh="refresh" />
</template>

<script lang="ts" setup>
  import { defineProps, defineEmits } from 'vue';
  import comForm from './com-form.vue';
  import detailTable from './detail-table.vue';

  const emit = defineEmits(['refresh']);
  const props = defineProps({
    formInfo: {
      type: Object,
      default: null,
    },
  });
  const refresh = () => {
    emit('refresh', props.formInfo.id);
  };
</script>
